﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Engine;
using Engine.Graphics;

namespace Playtime
{
    public class MenuScreen : UIScreen
    {
        public MenuScreen()
        {
            UIButton startGameButton = new UIButton("Start Game!", @"GUI/StartButtonUp", @"GUI/StartButtonDown", GraphicsEngine.Instance.Resolution/2 - new Vector2(150, 100));
            UIButton startEditor = new UIButton("Start Editor!", @"GUI/StartButtonUp", @"GUI/StartButtonDown", GraphicsEngine.Instance.Resolution/2 - new Vector2(150, -100));
            startEditor.ButtonPressed += OnStartEditor;
            Childs.Add(startGameButton);
            Childs.Add(startEditor);
        }

        public void OnStartEditor(UIElement _sender, object _message)
        {
            GameStateManager.LoadEditor();
        }
    }
}
